// 列配置
export let columns = [
 
  {
    title: "用户",
    key: "placeName"
  },
  {
    title: "提现金额",
    key: "location"
  },
  {
    title: "到账金额",
    key: "manager"
  },
  {
    title: "手续费",
    key: "status"
  },
  {
    title: "状态",
    key: "spaceInfo"
  },
  {
    title: "单位名称",
    key: "fee"
  },
  {
    title: "银行账号",
    key: "spaceInfo"
  },
  {
    title: "银行名称",
    key: "fee"
  },
  {
    title: "申请日期",
    key: "spaceInfo"
  },
  {
    title: "审核日期",
    key: "spaceInfo"
  },
 
  {
    title: "操作",
    slot: "operation",
    width: 250
  },
];

// 分页配置
export let pageConfig = {
  pageSize: 20,
  pageNow: 1,
  total: 0,
  loading: false,
};

// 表单数据
export let formValidate = {
  userId: null,
  username: '',
  loginAccount: '',
  dept: null,
  deptId: null,
  deptName: null,
  mobile: '',
  roleIdList: [],
  email: '',
  status: 1,
};

// 表单验证规则
export let ruleValidate = {
  username: [{ required: true, message: "用户名不能为空", trigger: "blur" }],
  loginAccount: [{ required: true, message: "登录账户不能为空", trigger: "blur" }],
  dept: [{ required: true, type: 'array', message: "请选择所属部门", trigger: "change" }],
  roleIdList: [{ required: true, type: 'array', min: 1, message: '请选择至少一个角色', trigger: 'change' }],
  mobile: [{ required: true, message: "手机号不能为空", trigger: "blur" }],
  email: [{ required: true, message: "邮箱不能为空", trigger: "blur" }],
  status: [{ required: true, type: 'number', message: "请选择人员状态", trigger: "change" }],
};

// 停车场状态
export let status = [{
  value: 0,
  key: "启用中",
}, {
  value: 1,
  key: "已停用",
}];